[IA64] Compilation fix with CRASH_DEBUG defined.
authorAlex Williamson <alex.williamson@hp.com>
Mon, 14 May 2007 17:13:24 +0000 (11:13 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Mon, 14 May 2007 17:13:24 +0000 (11:13 -0600)
Update for guest_mode()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/vmx/vmx_process.c
xen/arch/ia64/xen/faults.c

index 15d7bce18b0a955ab397e3cf4d3bb9317794dabf..96358039da89e5df99984d9f83cbca73e1ce4e14 100644 (file)
@@ -153,7 +153,7 @@ vmx_ia64_handle_break (unsigned long ifa, struct pt_regs *regs, unsigned long is
 
     perfc_incr(vmx_ia64_handle_break);
 #ifdef CRASH_DEBUG
-    if ((iim == 0 || iim == CDB_BREAK_NUM) && !user_mode(regs) &&
+    if ((iim == 0 || iim == CDB_BREAK_NUM) && !guest_mode(regs) &&
         IS_VMM_ADDRESS(regs->cr_iip)) {
         if (iim == 0)
             show_registers(regs);
index 966a51b5b846a5eed8a0164018e4fced1cb8ffaa..9deb3dea14b8852c62c910980a41e27fc43ab1a0 100644 (file)
@@ -507,7 +507,7 @@ ia64_handle_break(unsigned long ifa, struct pt_regs *regs, unsigned long isr,
                do_ssc(vcpu_get_gr(current, 36), regs);
        }
 #ifdef CRASH_DEBUG
-       else if ((iim == 0 || iim == CDB_BREAK_NUM) && !user_mode(regs)) {
+       else if ((iim == 0 || iim == CDB_BREAK_NUM) && !guest_mode(regs)) {
                if (iim == 0)
                        show_registers(regs);
                debugger_trap_fatal(0 /* don't care */ , regs);